use std::borrow::Cow;

use super::Cmd;



pub struct MoveGripper {
    pos: i32,
    tor: i32,
}

impl MoveGripper {

    pub const CMD_ID: u32 = 228;

    pub fn new(pos: i32, tor: i32) -> Self {
        Self { pos, tor }
    }
}



impl Cmd for MoveGripper {

    fn cmd_id(&self) -> u32 {
        Self::CMD_ID
    }

    fn to_string(&self) -> Cow<'static, str> {
        let data = format!("MoveGripper(1,{},100,{},30000)", self.pos, self.tor);
        Cow::Owned(data)
    }
}














